package com.ahzy.mapper;


import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.ahzy.po.User;

@Repository
public interface UserMapper extends BaseMapper<User> {
	
	
    @Select("SELECT * FROM user where number=#{number, jdbcType=VARCHAR}  AND password = #{password, jdbcType=VARCHAR}")
    User loginUser(String number,String password);
    
    @Select("SELECT * FROM user where number=#{number, jdbcType=INTEGER}")
    User selectOneByNumber(Integer number);

}